﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public interface IGameEnterControl
{
    GameEnterState.GameState NextState { get; }
    GameEnterState CurrGameState { get; }
    List<string> Files { get; set; }

    void PlayNext();
}

public abstract class GameEnterState
{
    public enum GameState
    {
        NONE,
        INIT,
        LOADZIP,
        UNZIP,
        LOADBUNDLE,
        UPDATE,
        START,
        MAX,
    }

    public GameState NextGameState { get; protected set; }
    public abstract void Start();

    protected IGameEnterControl control;
    protected GameEnterState(IGameEnterControl inControl, GameState inNextState)
    {
        this.control = inControl;
        this.NextGameState = inNextState;
    }

}
